﻿@{
    ViewBag.Title = "Back Cnter";
    Layout = null;
}
<!DOCTYPE html>
<html lang="zh-CN" style="height:100%;overflow:hidden">
<head>
    <title>@ViewBag.Title</title>
    @Html.Partial("_HeadScriptBlock")
    <script>
        $(function () {
            $(window).resize(function () {
                $("#desktop_content,#desktop_leftside").height($(window).height() - $("#desktop_head").height());
                $("#desktop_iframes").height($("#desktop_content").height() - $("#desktop_navbar").height());
                $("#desktop_menu").height($("#desktop_leftside").height() - $("#desktop_menutitle").height());
                $("#desktop_menu").accordion({ expandItem: 0 });
            }).resize();
            //$(".tree").jTree();
            mWindowPointer.id(Utils.getGuid());
            mPointerManager.register(mWindowPointer);

//            window.mTabPanelContainerHelper = new tabPanelContainerHelper($("#desktop_content"), {
//                navSlt: "#desktop_navbar",
//                contentSlt: "#desktop_iframes",
//                maxitem: 0
//            });
//            mTabPanelContainerHelper.init();
            //$("a[target]").link();
            window.homeid = window.mTabPanelContainerHelper.addTab({ url: "http://www.baidu.com", name: "首页", closeable: false });
            //App.getTabPanelContainer().addTab({ url: "http://www.GOOGLE.com", name: "GOOGLE" });
            //App.getTabPanelContainer().addTab({ html: "http://www.GOOGLE.com", name: "YAHOO" });
            //App.getAlertManager().error("哈哈哈哈");
            //App.getDialogManager().open({ content: "asdfasdfsdf", type: "html" });
            $("#desktop_menutitle a").click(function () {
                $("#desktop_leftside").toggleClass("leftsidetoggled");
                $("#desktop_content").toggleClass("desktop_contenttoggled");
                window.mTabPanelContainerHelper.layout();
            });
        });
    </script>
</head>

<body>
    <div id="desktop_head"></div>
    <div id="desktop_leftside">
            <div id="desktop_menutitle"><h2>主菜单</h2><a></a></div>
            <div id="desktop_menu" class="accordion"> 
                <div>         
				    <div class="header">
					    <div class="collapsable"><span class="icon"></span><span class="text">系统管理</span></div>
				    </div>
				    <div class="content">
				        <ul class="tree treeFolder">
				            <li><a href="@Url.Action("Index", "DepartmentManage",new {area="Passport"})" target="navtab">部门管理</a></li>				
				            <li><a href="@Url.Action("Index", "PositionManage", new { area = "Passport" })" target="navtab">职位管理</a></li>
				            <li><a href="/AdministratorManage" target="navtab">用户管理</a></li>		
				            <li><a href="/RoleManage" target="navtab">权限管理</a></li>		
				            <li><a href="/AuthManage" target="navtab">授权管理</a></li>	
				        </ul>
				    </div>
                </div>
                
                <div>         
				    <div class="header">
					    <div class="collapsable"><span class="icon"></span><span class="text">系统管理</span></div>
				    </div>
				    <div class="content">
				        <ul class="tree treeFolder">
				            <li><a href="/Store" target="navtab">4S店管理</a></li>
				            <li><a href="/Administrator" target="navtab">用户管理</a></li>		
				            <li><a href="/Seller" target="navtab">职员管理</a></li>		
				            <li><a href="/Pinpai" target="navtab">品牌管理</a></li>	
				            <li><a href="/CarBrand" target="navtab">车型管理</a></li>				
				            <li><a href="/CarModel" target="navtab">车款管理</a></li>
				        </ul>
				    </div>
                </div>  
            </div>
    </div>
    <div id="desktop_content">
        <div id="desktop_navbar"></div>
        <div id="desktop_iframes"></div>
    </div>
</body>
</html>

